<?php

require_once 'ZendX/JQuery/Form.php';

/**
 * The generic contact form for this application.
 * 
 * @author Michael Krotscheck
 */
class Core_Form_AbstractForm extends ZendX_JQuery_Form
{
	/**
	 * Initialization routine for this form.
	 */
	public function init()
	{
		parent::init();
		
		// Adding form description element for potential error messages
		// thrown by submission.
		
		$this->clearDecorators();
		$this->addDecorator('FormElements');
		$this->addDecorator( 'HtmlTag', array('tag' => 'dl', 'class' => 'form') );
		//$this->addDecorator( 'Description', array('placement' => 'prepend' ));
		$this->addDecorator('Form');
	}
}